﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PopularItem.ascx.cs" Inherits="Shop4Aggies.Controls.PopularItem" %>
<%@ OutputCache Duration="5" VaryByParam="None" %>
<div class="MostPopularHead">New items</div>
<div id="PanelPopularItems" style="padding: 10px; background-color: Gray" runat="server">
    <asp:Repeater ID="RepeaterItemsList" runat="server">
       <HeaderTemplate></HeaderTemplate>
          <ItemTemplate>
          <table style="border-right:0px;">
          <tr>
            <td style="border-right:0px;">
                <image src='Catalog/Images/<%# Eval("ProductImage") %>' width="100" height="75" border="0">
            </td>
            <td style="border-right:0px;">
                <a class='MostPopularItemText' href='ProductDetails.aspx?productID=<%# Eval("ProductId") %>'><%# Eval("ModelName") %></a>
                <br />
                <%# Eval("UnitCost", "{0:c}")%>
            </td>
            </tr>
            </table>    
          </ItemTemplate>
       <FooterTemplate></FooterTemplate>
    </asp:Repeater>
</div>
